<?php
require_once("../db/db_connector.php");
require_once("../db/db_paradise.php");

// Database Access Begins ---------------------------------------- //
$con = get_db_con();
$result = insert_paradise($con, $_POST);
close_db_con();
// Database Access Ends ------------------------------------------ //

if ($result > 0) {
	header("Location: paradise.php");
}
else {
	header("Location: paradise_edit.php");
}
